package com.limm.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class Util {

    //生成uuid
    public static String getUUID(){
        UUID id = UUID.randomUUID();
        String str = id.toString();
        String uuid = str.replace("-","");
        return uuid;
    }

    //创建可移植性的时间
    public static String getData(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(new Date());
    }
}
